//完整引入element-plus资源
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import { createApp } from 'vue'
import pinia from './stores'

import App from './App.vue'
import router from './router'

//初始化esri的apikey
import esriConfig from '@arcgis/core/config.js'
esriConfig.apiKey =
  'AAPTxy8BH1VEsoebNVZXo8HurBp2c870Zy3YNW3A0TUR-1i_kukQOtI26b4CLRRrmg7pcbxdBO668rK6N8FCrSBF4GLTQFKMoZqd47hlkEICK8MLtR8TnOG35AgtaVJwC4JF0xi8r0la1KVF1pKjorRuXZWKW9J_JLmJWLkt_sFf5Y2nRSpwiI6zK-leImuJdzhPdj3VjFev7FQMf2w-_kDml4ad91B5k9aepUvUnFGCVyU7Pxt89MLqbtYSdGxf02LKAT1_4jh5r8In'
//初始化esri语言
import * as intl from '@arcgis/core/intl.js'
intl.setLocale('zh-CN')

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus)
app.use(pinia)
app.use(router)

app.mount('#app')
